<?php
/**
 ***** 扶摇而上、抱守本真 ******
 * @author Dana
 * @Date 2021/6/30
 */

$request = htmlentities($_SERVER['SCRIPT_NAME']);
$string = <<<EDF
<form action="$request" method="post">
what is your first name?<br>
name:<input type="text" name="first_name" /><br>
credit_card:<input type="text" name="credit_card" /><br>
<input type="submit" value="Say Hello" /><br>
</form>
EDF;

print $string;

if($_SERVER['REQUEST_METHOD'] == 'GET'){
    include __DIR__.'/getPost-get.php';
}else{
    include __DIR__.'/getPost-post.php';
}








